﻿using System;

namespace Microsoft.Xna.Framework.Graphics
{
	/// <summary>
	/// Thrown when no available graphics device fits the given device preferences.
	/// </summary>
	public class NoSuitableGraphicsDeviceException : Exception
	{
		/// <summary>
		/// Creates a new instance of this object.
		/// </summary>
		public NoSuitableGraphicsDeviceException()
		{
		}

		/// <summary>
		/// Creates a new instance of this object.
		/// </summary>
		/// <param name="message">A message that describes the error.</param>
		public NoSuitableGraphicsDeviceException(string message)
			: base(message)
		{
		}

		/// <summary>
		/// Creates a new instance of this object.
		/// </summary>
		/// <param name="message">A message that describes the error.</param>
		/// <param name="inner">The exception that is the cause of the current exception. If the inner parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.</param>
		public NoSuitableGraphicsDeviceException(string message, Exception inner)
			: base(message, inner)
		{
		}
	}
}
